#include <iostream>
#include <cstring>

struct Student
{
    void InitStu (int ID,const char *Name)
    {
        id = ID;
        name = strdup(Name);
    }
    int id;
    char *name;
};

int main()
{
    Student s;
    s.InitStu(1, "zhangsan");
    std::cout<<s.id<<" "<<s.name<<std::endl;
}
